package com.senseuni.da.db

import com.senseuni.da.BuildConfig
import com.senseuni.da.db.entity.AppLogEntity
import com.senseuni.da.model.LogType

object DbHelper {

    fun addAppLog(logType: LogType, msg: String) {
        val entity = AppLogEntity()
        entity.log = msg
        entity.logType = logType.name
        entity.versionCode = BuildConfig.VERSION_CODE
        AppDatabase.getInstance().appLogDao().insert(entity)
    }

}